package com.jeehentor.generate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_gen_page")
@Schema(description = "SysGenPage实体类")
public class SysGenPage {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
    @Schema(description = "模型id")
    private String modelId;
    @Schema(description = "表单id")
    private String formId;
    @Schema(description = "页面名称")
    private String pageName;
    @Schema(description = "展示字段")
    private String showField;
    @Schema(description = "查询字段")
    private String queryField;
    @Schema(description = "版本")
    private String version;
    @Schema(description = "菜单id")
    private String menuId;
    @Schema(description = "菜单组件名称")
    private String menuName;
    @Schema(description = "菜单名称")
    private String menuTitle;
    @Schema(description = "创建人")
    private String createBy;
    @Schema(description = "创建日期")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @Schema(description = "更新人")
    private String updateBy;
    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
